//------------------------------------------------------------------------------
// <copyright file="DesignerPropertiesHelper.cs" company="Damian Antonowicz">
//       copyright © 2010 Damian Antonowicz
// </copyright>
// <author>Damian Antonowicz</author>
// <email>poczta@damianantonowicz.pl</email>
//------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.ComponentModel;

namespace DAnton.Utilities.Helpers
{
    public static class DesignerPropertiesHelper
    {
        public static bool IsInDesignMode()
        {
            foreach (Window window in Application.Current.Windows)
            {
                if (DesignerProperties.GetIsInDesignMode(window))
                    return true;
            }

            return false;
        }
    }
}
